﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entities
{
    public abstract class Person
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Address { get; set; }
        public string PhoneNumber { get; set; }

        public virtual void ViewInfo()
        {
            
        }
        public virtual int Validate(Person p)
        {
            return 1;
        }

        public virtual int Update(Person p)
        {
            return 1;
        }

        public virtual int Delete(Person p)
        {
            return 1;
        }

        public virtual List<Person> Insert(Person p)
        {
            throw new NotImplementedException();
        }

    }
}
